import { createBrowserRouter } from 'react-router-dom'
import Home from '../pages/home/Index';
import Index from '../pages/index/Index'
import List from '../pages/list/Index'
import Order from '../pages/order/Index'
export const homerouter = [
  {
    path: 'index',
    title: '首页',
    element: <Index></Index>
  },
  {
    path: 'list',
    title: '列表',
    element: <List></List>
  },
  {
    path: 'order',
    title: '订单',
    element: <Order></Order>
  }
]
const router = createBrowserRouter([
  {
    path: '/',
    element: <Home></Home>,
    children: homerouter
  }
])
export default router;